#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#define a 40
#define c 212

int main() {
    printf("%d", (-8 + 22) * a - 10 + c / 2);
    return 0;
}